﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="MeusOrcamentos.aspx.cs" Inherits="MakeIT.Deo.Apresentacao.MeusOrcamentos" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat='server'>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <center>
    <table style="border:solid 1px blue;">
        <tr>
            <td align="right" valign="top">
                Or&ccedil;amento no Carrinho:
            </td>
            <td align="left">
                <asp:Panel ID="PanelOrcamentoClienteVazio" runat="server" Visible="false">
                    Carrinho vazio.
                </asp:Panel>
                <asp:Repeater ID="RepeaterOrcamentoCliente" runat="server" >
                    <HeaderTemplate>
                        <table border="0" cellspacing="3" width="100%">
                    </HeaderTemplate>

                    <ItemTemplate>
                        <tr>
                            <td>
                                Iniciado em <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataSolic")).ToString("dd/MM/yyyy") %> e ainda não finalizado.
                            </Td>
                        </tr>
                    </ItemTemplate>

                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td colspan="2"  style="border-bottom:solid 1px blue;">
            </td>
        </tr>
         <tr>
            <td align="right" valign="top">
                Or&ccedil;amentos Atendidos:
            </td>
            <td align="left">
                <asp:Panel ID="PanelOrcamentoExecutadosVazio" runat="server" Visible="false">
                    Nenhum or&ccedil;amento atendido.
                </asp:Panel>
                <asp:Repeater ID="RepeaterOrcamentoExecutados" runat="server">
                    <HeaderTemplate>
                        <table border="0" cellspacing="3" width="100%">
                            <tr style="background-color:Blue; color:White;" >
                                <td>
                                    Solicita&ccedil;&atilde;o
                                </td>
                                <td>
                                    Atendimento
                                </td>
                                <td>
                                    V&aacute;lido at&eacute;
                                </td>
                                <td>
                                    Visualizar
                                </td>
                            </tr>
                    </HeaderTemplate>

                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataSolic")).ToString("dd/MM/yyyy") %>
                            </Td>
                            <td>
                                <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataExec")).ToString("dd/MM/yyyy") %>
                            </Td>
                            <td>
                                <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataValid")).ToString("dd/MM/yyyy") %>
                            </Td>
                            <td>
                                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%#"~/ViewOrcamento.aspx?idOrcamento="+Eval("IdOrcamento") %>'>
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Padrao/imagens/masterPage/page_search.png"/>
                                </asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>

                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                    
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td colspan="2"  style="border-bottom:solid 1px blue;">
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                Or&ccedil;amentos em Atendimento:
            </td>
            <td align="left">
                <asp:Panel ID="PanelOrcamentoAtendimentoVazio" runat="server" Visible="false">
                    Nenhum or&ccedil;amento em atendimento.
                </asp:Panel>
                <asp:Repeater ID="RepeaterOrcamentoAtendimento" runat="server">
                    <HeaderTemplate>
                        <table border="0" cellspacing="3" width="100%">
                    </HeaderTemplate>

                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# ((DateTime)DataBinder.Eval(Container.DataItem, "DataSolic")).ToString("dd/MM/yyyy") %>
                            </Td>
                        </tr>
                    </ItemTemplate>

                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
    </center>
</asp:Content>
